﻿<Window x:Class="MetaTracker.View.RegisterFitbitView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        WindowStartupLocation="CenterScreen"
        Title="RegisterFitbitView" Height="298" Width="462">
    <StackPanel Orientation="Vertical" Margin="5,0,5,0">
        <TextBlock Margin="0,15,0,5" Text="Link Fitbit Account" 
                   HorizontalAlignment="Center"/>
        <StackPanel Orientation="Vertical" HorizontalAlignment="Center" Margin="0,10,0,0">
            <TextBlock Text="Launch the Fitbit Registration page by clicking the button below." 
                       Margin="0,5,0,0"/>
            <TextBlock Text="Then, Log into Fitbit." 
                       Margin="0,0,0,5"/>
            <Button Content="_Launch Fitbit Registration" Margin="0,5,0,25"
                    Command="{Binding LaunchRegistration}"/>
            <TextBlock Text="When given a validation code, enter here:" />
            <TextBox Width="200" Margin="5,5,5,5" Text="{Binding VerificationCode,
                UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"/>
            <Button Content="_Validate and Register" Command="{Binding ValidateOauthCommand}"/>
        </StackPanel>
    </StackPanel>
</Window>
